package org.learn.service;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * 监听消费者的反馈(Topic模式)
 */
@Component
public class ProducerTopicListener {

    @JmsListener(destination = "out.topic")
    public void consumerMessage(String text) {
        System.out.println("从out.topic队列收到的回复报文为:" + text);
    }
}
